# -*-coding:utf-8-*-
page_text_string = '/index.php/vod/type/id/27/page/28.html'

# 定义文本处理工具方法
def get_page(page_text_string):
    print(page_text_string)
    page = page_text_string.split("/page/", 2)[1].split(".", 2)[0]
    return int(page)

# 调用文本处理工具方法

print(get_page(page_text_string))
print(type(get_page(page_text_string)))

# 生成url模板模型
def get_page_model(page_url_model):
    page_model = page_url_model.split('.html', 1)[0]
    return page_model
